package com.hinnotek.amoeba.repo

import com.hinnotek.amoeba.api.ApiService
import com.lee.common.bean.LoginBean
import com.lee.common.base.BaseRepository
import com.lee.common.network.net.StateLiveData
import javax.inject.Inject

class LoginRepo @Inject constructor(private val service: ApiService):BaseRepository() {

    /**
     * 登录
     */
    suspend fun toLogin(userName:String,password:String,stateLiveData: StateLiveData<LoginBean>){
        executeResp({ service.appLogin(userName,password) }, stateLiveData)
    }

}